<#include "/common/taglibs.ftl" />
<#assign btnStyle="btn m-btn m-btn--icon m-btn--wide m-btn--md" />
<#assign btnMargin="m--margin-right-10" />
<div class="m-portlet__foot m-portlet__foot--fit">
    <div class="m-form__actions m-form__actions--solid">
        <div class="row">
            <div class="col-lg-9 ml-lg-auto">
        	<#if op != 'op.view'>
                <#if op != 'op.delete'>
                    <button data-toggle="m-tooltip" type="submit" class="${btnStyle} btn-brand ${btnMargin}" title='<@spring.message code="button.submit"/>'> <span><i class="la la-check-circle"></i> <span><@spring.message code="button.submit"/></span></span></button>
                    <button data-toggle="m-tooltip" type="reset" class="${btnStyle} btn-warning ${btnMargin}" title='<@spring.message code="button.reset"/>'> <span><i class="la la-eraser"></i> <span><@spring.message code="button.reset"/></span></span></button>
                    <#if op == 'op.edit'>
                        <a data-toggle="m-tooltip" class="${btnStyle} btn-info ${btnMargin}" href="${ctx}/${baseUrl!}/${(m.id)!}" title='<@spring.message code="button.view"/>'> <span><i class="la la-eye"></i> <span><@spring.message code="button.view"/></span></span></a>
            		</#if>
        		</#if>
                <#if op == 'op.delete'>
                    <button data-toggle="m-tooltip" type="submit" class="${btnStyle} btn-danger ${btnMargin}"
                        data-confirmation="true" data-original-title="<@spring.message code="confirmation.detete"/>"
                        data-btn-ok-label="<@spring.message code="yes"/>" data-btn-cancel-label="<@spring.message code="no"/>" >
                        <i class="la la-trash"></i> <@spring.message code="button.delete"/>
                    </button>
                </#if>
        	</#if>
        	<#if op == 'op.view'>
                <a data-toggle="m-tooltip" class="${btnStyle} btn-accent ${btnMargin}" href="${ctx}/${baseUrl!}/${(m.id)!}/update" title='<@spring.message code="button.edit"/>'> <span><i class="la la-edit"></i> <span><@spring.message code="button.edit"/></span></span></a>
        	</#if>
            </div>
        </div>
    </div>
</div>